﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PdfLib
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class HorizontalLine
    {
        private float _X1;
        /// <summary></summary>
        public float X1
        {
            get
            {
                return this._X1;
            }
            set
            {
                this._X1 = value;
            }
        }

        private float _X2;
        /// <summary></summary>
        public float X2
        {
            get
            {
                return this._X2;
            }
            set
            {
                this._X2 = value;
            }
        }

        private float _Y;
        /// <summary></summary>
        public float Y
        {
            get
            {
                return this._Y;
            }
            set
            {
                this._Y = value;
            }
        }

        public HorizontalLine(float x1, float x2, float y)
        {
            this._X1 = x1;
            this._X2 = x2;
            this._Y = y;
        }

        public bool Valid
        {
            get
            {
                if (X1 <= 0 && X2 <= 0 && Y <= 0)
                    return false;
                else
                    return true;
            }
        }
    }
}
